import { resultSuccess } from '../_util'

const menuList = () => {
  const result: any[] = [
    // {
    //   id: '528545323536',
    //   name: '首页',
    //   path: '/home',
    //   redirect: null,
    //   parentView: 'layout',
    //   component: 'home/index',
    //   query: null,
    //   alwaysShow: null,
    //   type: 1,
    //   meta: {
    //     title: '首页',
    //     icon: 'el-icon-house',
    //     noCache: false,
    //     hidden: false,
    //     affix: true,
    //     link: '',
    //   },
    //   children: null,
    // },
    {
      id: '23425567575632232',
      name: '概览',
      path: '/dashboard',
      redirect: null,
      parentView: 'layout',
      component: null,
      query: null,
      alwaysShow: true,
      type: 0,
      meta: {
        title: '概览',
        icon: 'el-icon-copy-document',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: [
        {
          id: '1564631321353',
          name: '主控台',
          path: '/dashboard/console',
          redirect: null,
          parentView: 'layout',
          component: 'dashboard/consol/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '主控台',
            icon: 'el-icon-house',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '1647154306278797312',
          name: '工作台',
          path: '/dashboard/workplace',
          redirect: '',
          parentView: 'layout',
          component: 'dashboard/workplace/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '工作台',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: true,
            link: '',
          },
          children: null,
        },
      ],
    },
    {
      id: '23478454546767',
      name: '基础列表',
      path: '/basicList',
      redirect: null,
      parentView: 'layout',
      component: 'basicList/index',
      query: null,
      alwaysShow: null,
      type: 1,
      meta: {
        title: '基础列表',
        icon: 'el-icon-postcard',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: null,
    },
    {
      id: '3445777533',
      name: '设置页面',
      path: '/setPage',
      redirect: null,
      parentView: 'layout',
      component: null,
      query: null,
      alwaysShow: true,
      type: 0,
      meta: {
        title: '设置页面',
        icon: 'el-icon-copy-document',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: [
        {
          id: '34256567434',
          name: '个人设置',
          path: '/setPage/personalSeting',
          redirect: null,
          parentView: 'layout',
          component: 'setPage/personalSeting/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '个人设置',
            icon: 'el-icon-house',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '345765422677',
          name: '系统设置',
          path: '/setPage/systemSeting',
          redirect: '',
          parentView: 'layout',
          component: 'setPage/systemSeting/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '系统设置',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
      ],
    },
    {
      id: '345356657532',
      name: '组件示例',
      path: '/componentExample',
      redirect: null,
      parentView: 'layout',
      component: null,
      query: null,
      alwaysShow: true,
      type: 0,
      meta: {
        title: '组件示例',
        icon: 'el-icon-copy-document',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: [
        {
          id: '1234668904534',
          name: '表格',
          path: '/componentExample/table',
          redirect: null,
          parentView: 'layout',
          component: 'componentExample/table/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '表格',
            icon: 'el-icon-house',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '12344632346773',
          name: '表单',
          path: '/componentExample/form',
          redirect: '',
          parentView: 'layout',
          component: 'componentExample/form/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '表单',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '2344543225623343',
          name: '上传',
          path: '/componentExample/upload',
          redirect: '',
          parentView: 'layout',
          component: 'componentExample/upload/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '上传',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '12461326435164',
          name: '富文本',
          path: '/componentExample/editor',
          redirect: '',
          parentView: 'layout',
          component: 'componentExample/editor/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '富文本',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '25689452384365224856',
          name: '拖拽',
          path: '/componentExample/drag',
          redirect: '',
          parentView: 'layout',
          component: 'componentExample/drag/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '拖拽',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '2344534545645',
          name: 'PDF预览',
          path: '/componentExample/pdfViewer',
          redirect: '',
          parentView: 'layout',
          component: 'componentExample/pdfViewer/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: 'PDF预览',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
      ],
    },
    {
      id: '344545675754323',
      name: '指令示例',
      path: '/instructionExample',
      redirect: null,
      parentView: 'layout',
      component: 'instructionExample/index',
      query: null,
      alwaysShow: null,
      type: 1,
      meta: {
        title: '指令示例',
        icon: 'el-icon-postcard',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: null,
    },
    {
      id: '12312345345',
      name: '文档示例',
      path: '/iframe',
      redirect: null,
      parentView: 'layout',
      component: null,
      query: null,
      alwaysShow: true,
      type: 0,
      meta: {
        title: '文档示例',
        icon: 'el-icon-copy-document',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: [
        {
          id: '43132896453135',
          name: 'vue文档',
          path: '/iframe/vue',
          redirect: '',
          parentView: 'layout',
          component: 'iframe/vue/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: 'vue文档',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: 'https://cn.vuejs.org/',
          },
          children: null,
        },
        {
          id: '5252252155666',
          name: 'vite文档',
          path: '/iframe/vite',
          redirect: '',
          parentView: 'layout',
          component: 'iframe/vite/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: 'vite文档',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: 'https://vitejs.cn/vite3-cn/',
          },
          children: null,
        },
        {
          id: '454513556434354',
          name: 'pinia文档',
          path: '/iframe/pinia',
          redirect: '',
          parentView: 'layout',
          component: 'iframe/pinia/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: 'pinia文档',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: 'https://pinia.vuejs.org/zh/',
          },
          children: null,
        },
        {
          id: '4527867637',
          name: 'Element-Plus',
          path: '/iframe/elementPlus',
          redirect: '',
          parentView: 'layout',
          component: 'iframe/elementPlus/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: 'Element-Plus',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: 'https://element-plus-docs.bklab.cn/zh-CN/',
          },
          children: null,
        },
        {
          id: '512313654316515634',
          name: '百度一下(外部)',
          path: '/external',
          redirect: '',
          parentView: 'layout',
          component: 'iframe/elementPlus/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '百度一下(外部)',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: 'https://www.baidu.com/',
          },
          children: null,
        },
      ],
    },
    {
      id: '3459390430',
      name: '权限管理',
      path: '/permissions',
      redirect: null,
      parentView: 'layout',
      component: null,
      query: null,
      alwaysShow: true,
      type: 0,
      meta: {
        title: '权限管理',
        icon: 'el-icon-copy-document',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: [
        {
          id: '3457623930',
          name: '菜单权限管理',
          path: '/permissions/menu',
          redirect: null,
          parentView: 'layout',
          component: 'permissions/menu/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '菜单权限管理',
            icon: 'el-icon-house',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '2324534530',
          name: '角色权限管理',
          path: '/permissions/role',
          redirect: '',
          parentView: 'layout',
          component: 'permissions/role/index',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '角色权限管理',
            icon: 'el-icon-user',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
      ],
    },
    {
      id: '12345452332',
      name: '异常页面',
      path: '/exception',
      redirect: null,
      parentView: 'layout',
      component: null,
      query: null,
      alwaysShow: true,
      type: 0,
      meta: {
        title: '异常页面',
        icon: 'el-icon-copy-document',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: [
        {
          id: '65623234856312',
          name: '403页面',
          path: '/exception/403',
          redirect: null,
          parentView: 'layout',
          component: 'exception/403',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '403页面',
            icon: 'el-icon-house',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '684728320',
          name: '404页面',
          path: '/exception/404',
          redirect: null,
          parentView: 'layout',
          component: 'exception/404',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '404页面',
            icon: 'el-icon-house',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
        {
          id: '512513516843512654',
          name: '500页面',
          path: '/exception/500',
          redirect: null,
          parentView: 'layout',
          component: 'exception/500',
          query: null,
          alwaysShow: null,
          type: 1,
          meta: {
            title: '500页面',
            icon: 'el-icon-house',
            noCache: false,
            hidden: false,
            affix: false,
            link: '',
          },
          children: null,
        },
      ],
    },
    {
      id: '17347837549834579',
      name: '关于项目',
      path: '/about',
      redirect: null,
      parentView: 'layout',
      component: 'about/index',
      query: null,
      alwaysShow: null,
      type: 1,
      meta: {
        title: '关于项目',
        icon: 'el-icon-postcard',
        noCache: false,
        hidden: false,
        affix: false,
        link: '',
      },
      children: null,
    },
  ]
  return result
}

export default [
  {
    url: '/api/getUserMenu',
    timeout: 1000,
    method: 'post',
    response: () => {
      const list = menuList()
      return resultSuccess(list)
    },
  },
]
